package com.google.gwt.sample.dynatablerf.client.user.views;

import com.google.gwt.sample.dynatablerf.client.user.presenters.MainPresenter.MainDisplay;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.googlecode.mgwt.ui.client.widget.buttonbar.ButtonBar;

public class MainView extends Composite implements MainDisplay {

	private VerticalPanel mainPanel;

	public MainView() {

		VerticalPanel verticalPanel = new VerticalPanel();
		verticalPanel.setSize("100%", "100%");
		verticalPanel.add(new ButtonBar());

		mainPanel = new VerticalPanel();
		mainPanel.setSize("100%", "100%");
		verticalPanel.add(mainPanel);

		initWidget(verticalPanel);

	}

	@Override
	public HasWidgets getContainer() {
		return mainPanel;
	}

}
